﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace Southridge.Data
{
    public class Contact : BusinessEntity 
    {
        private string _firstName;

        public string FirstName
        {
            get { return _firstName; }
            set
            {
                if (_firstName != value)
                {
                    _firstName = value; OnPropertyChanged("FirstName");
                }
            }
        }
        private string _lastName;

        public string LastName
        {
            get { return _lastName; }
            set { 
                    if ( _lastName != value ) 
                        { _lastName = value; OnPropertyChanged("LastName"); }
            } 
        }
        private Phone _homePhoneNo;

        public Phone HomePhoneNo
        {
            get { return _homePhoneNo; }
            set { _homePhoneNo = value; OnPropertyChanged("HomePhoneNo"); }
        }
        private Phone _mobilePhoneNo;

        public Phone MobilePhoneNo
        {
            get { return _mobilePhoneNo; }
            set { _mobilePhoneNo = value; OnPropertyChanged("MobilePhoneNo"); }
        }
        private Address _address;

        public Address Address
        {
            get { return _address; }
            set { _address = value; OnPropertyChanged("Address"); }
        }
    }

    public class Seller  : Contact 
    {
        public List<Listing> Listings
        {
            get
            {
                return new List<Listing>();  
            } 
        } 
    }

    public class Buyer : Contact
    {
        //TODO: 
    } 
}
